package com.neulogistics.contrib.warehouse.infrastructure.persistence.orm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neulogistics.contrib.warehouse.infrastructure.persistence.orm.po.WarehousePO;
import com.neulogistics.contrib.warehouse.infrastructure.persistence.orm.service.IWarehousePOService;
import com.neulogistics.contrib.warehouse.infrastructure.persistence.orm.mapper.WarehousePOMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Satoshi
* @description 针对表【tb_warehouse(库房信息表)】的数据库操作Service实现
* @createDate 2023-06-27 15:46:25
*/
@Service
public class WarehousePOService extends ServiceImpl<WarehousePOMapper, WarehousePO>
    implements IWarehousePOService {

    @Resource
    WarehousePOMapper warehousePOMapper;


    @Override
    public List<WarehousePO> getCenterWarehousesByProvince(String province) {
        List<WarehousePO> centerWarehouses = warehousePOMapper.getCenterWarehousesByProvince(province);
        return centerWarehouses;
    }

    @Override
    public List<WarehousePO> getSubWarehousesByProvince(String province) {
        List<WarehousePO> subWarehouses = warehousePOMapper.getSubWarehousesByProvince(province);
        return subWarehouses;
    }
}




